package com.choosefine.base.shixiaobao.common.utils;

import java.util.List;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;

/**
 * 功能概要：
 * 
 * @author guwenwei
 * @since 2016/11/28
 */
public class PagedResult {
	
	public static <T> PageInfo<T> toPageInfo(List<T> datas) {
		PageInfo<T> result = null;
		if (datas instanceof Page) {
			 result = new PageInfo<T>(datas);
		}
		return result;
	}
	
}
